package org.ant.gui.panes.ACtextpanel;

import org.ant.gui.panes.ACtextpanel.listener.CodeListener;
import org.ant.util.Code;

/**
 *
 * @author hichens
 */
public interface CodeEditPane{
	public String getName();
	public void load(String path);
	public void save(String path);
	public void toLine(int n);
	public void hightLight(String s);
	public void addCodeListener(CodeListener listener);
	
	public String getText();
	public void undo();
	public void redo();
	public void paste();
	public void copy();
	public void cut();
	public void clear();
	public void setError(int n,String error);
	public void clearError(int n);
	public int countLines();
	public void setCodeModel(Code code);
}
